<?php


require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');

$environment = 'prod';
$debug = false;

if (!filter_var(@$_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE)
	&& filter_var(@$_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP)) {
	$environment = 'dev';
	$debug = true;
}

$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', $environment, $debug);
sfContext::createInstance($configuration)->dispatch();
